using UnityEngine;
using System.Collections;

public class Sentinel : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnTriggerStay(Collider other)
	{
		if(other.gameObject.tag == "Inimigo")
		{
			transform.LookAt(new Vector3(other.transform.position.x, transform.position.y, other.transform.position.z));
		}
	}
}
